<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		
		document.write("<table border='1'>");

		for (var i = 1; i <=9; i++) {

			document.write("<tr>");

			for (var j = 1; j <=9; j++) {
				if(false){
					document.write("<td style='background:red'>"+i+"*"+j+"="+i*j+"</td>");
				}else{
					document.write("<td style='background:blue'>"+i+"*"+j+"="+i*j+"</td>");
				}
				
			}

			document.write("</tr>");
		}

		document.write("</table>");
	</script>
</head>
<body>
	<table>
		<tr>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
		</tr>
	</table>
</body>
</html>